package compiler.parser.lalr;

import compiler.grammar.Symbol;

/// <summary>

/// Summary description for LALRTransition.
/// </summary>
public class LALRTransition
{
    //~ Instance fields --------------------------------------------------------

    private LALRState transitionTo;
    private Symbol    transitionOn;

    //~ Constructors -----------------------------------------------------------

    public LALRTransition(Symbol on, LALRState to)
    {
        this.transitionOn = on;
        this.transitionTo = to;
    }

    //~ Methods ----------------------------------------------------------------

    public Symbol getTransitionOn()
    {
        return transitionOn;
    }

    public LALRState getTransitionTo()
    {
        return transitionTo;
    }
}
